package com.qinghong.server.service;

import com.qinghong.server.entity.Employee;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qinghong.server.entity.RespPageBean;
import com.qinghong.server.vo.RespBean;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 员工表 服务类
 * </p>
 *
 * @author alex
 * @since 2021-11-29
 */
public interface IEmployeeService extends IService<Employee> {


    RespPageBean getEmployeeByPage(Integer countPage, Integer size, Employee employee, LocalDate[] beginDateScope);

    /**
     * 获取工号  为最大工号加1
     * @return
     */
    RespBean maxWorkID();

    /**
     * 添加员工
     * @param employee
     * @return
     */
    RespBean addEmployee(Employee employee);

    /**
     * 查询员工
     * @param id
     * @return
     */
    List<Employee> getEmployee(Integer id);

    /**
     * 获取所有员工的工资账套
     * @param currentPage
     * @param size
     * @return
     */
    RespPageBean getEmployeeWithSalary(Integer currentPage, Integer size);
}
